home *** CD-ROM | disk | FTP | other *** search
- Path: geraldo.cc.utexas.edu!usenet
- From: kmorneau@mail.utexas.edu (Keith Michael Morneau)
- Newsgroups: comp.lang.c++
- Subject: cin.peek ()
- Date: 22 Feb 1996 09:38:45 GMT
- Organization: University of Texas at Austin
- Message-ID: <4ghdj5$8gi@geraldo.cc.utexas.edu>
- NNTP-Posting-Host: slip-40-4.ots.utexas.edu
- X-Newsreader: WinVN 0.92.6+
-
- I'm writing a small little program with a requirement to use cin.peek ()
- for checking a little routine. My question is, is there a way to reset
- the input stream. I'm checking the input stream for a '\n', and looping
- if a separate condition is false. The stream already has a '\n' in it
- upon looping again, so it skips the function.
-
- If I'm not making much sense, just ignore this post, please.
- --
- Keith Michael Morneau
- kmorneau@mail.utexas.edu
- Voice: (512)708-1469
- Fax: (512)708-1468
- CEO, ScoTech Productions
- Department of Research and Development
-
-